package ee.serge.util.bootstrap;

import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;

public class BButton extends Button {

	public static final String PRIMARY = "btn primary";
	public static final String INFO = "btn info";
	public static final String DEFAULT = "btn";
	public static final String SUCCESS = "btn success";
	public static final String DANGER = "btn danger";
	
	
	public BButton(String text, ClickHandler handler) {
      this(text, DEFAULT, handler);
    }
	
	public BButton(String text, String style, ClickHandler handler) {
	   super(text, handler);
	   setStyleName(style);
   }
	
	public void setLarge() {
		addStyleName("large");
	}
	
}
